#ifndef COMMONMARCRO_H
#define COMMONMARCRO_H
#include <QPoint>
#include <QSize>
#include <QString>
#include <QRectF>
#include <QDebug>

#define CC_SAFE_DELETE_NULL(p) if(p) {delete p; p = 0;}
typedef struct
{
    QString name;
    QString plistName;
    QString plistPngName;
    QRectF sizeRect;
    QPointF offset;
    QRectF sourceColorRect;
    QPointF sourceRectPoint;
    bool isRotated;

}PlistFrameInfo;


#define XSLOT 0
#define YSLOT 1
#define WSLOT 2
#define HSLOT 3

typedef QList<PlistFrameInfo*> PlistFrameInfoList;


#endif // COMMONMARCRO_H
